/**
 * Created by jh on 2018/2/8
 */
export const api = {
    //用户列表
    GET_USER_LIST: {
        url: '/userEntity/users',
        method: 'get'
    },
    //用户添加
    ADD_USER: {
        url: '/userEntity/users',
        method: 'post'
    },
    //用户修改
    Edit_USER: {
        url: '/userEntity/users',
        method: 'put'
    },
    //用户删除
    DELETE_USER: {
        url: '/userEntity/users/{id}',
        method: 'delete'
    },
    //启用/禁用用户
    ENABLE_USER: {
        url: '/userEntity/users/{id}/{status}?id={id}&status={status}',
        method: 'put'
    },
    //获取用户的信息
    GET_USER: {
        url: '/userEntity/users/{id}?id={id}',
        method: 'get'
    },
    //部门列表
    GET_DEPT_LIST: {
        url: '/dept/list',
        method: 'get'
    },
    //部门修改
    ADD_DEPT: {
        url: '/dept/save',
        method: 'post'
    },
    //部门修改
    DEL_DEPT: {
        url: '/dept/delete/{deptId}',
        method: 'delete'
    },
    //获取数据权限
    GET_DATA_AUTH: {
        url: '/userEntity/users/dataPower',
        method: 'get'
    },
    //修改数据权限
    EDIT_DATA_AUTH: {
        url: '/userEntity/users/dataPower',
        method: 'put'
    },
    //删除用户关联角色
    DELETE_CONNET_ROLE: {
        url: '/userEntity/users/deleteUserRole',
        method: 'put'
    },
    //根据角色 Id 获取角色下的所有用户
    GET_ROLE_USERLIST: {
        url: '/roleEntity/roles/users/{id}',
        method: 'get'
    },
    //重置密码
    PUT_RESET_PWD: {
        url: '/userEntity/resetPwd?id={id}',
        method: 'put'
    },
}
